package com.tpshion.cloud.base.domain.dto;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Valid
public class ConfigInfoDto {

    @NotNull(message = "pageSize不能为空")
    private int pageSize;

    @NotNull(message = "pageNum不能为空")
    private int pageNum;

    private String dataId;

    private String groupId;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return "ConfigInfoDto{" +
                "pageSize=" + pageSize +
                ", pageNum=" + pageNum +
                ", dataId='" + dataId + '\'' +
                ", groupId='" + groupId + '\'' +
                '}';
    }
}
